<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>添加专项基金</title>
		<script charset="utf-8" src="editor/kindeditor.js"></script>
		<script>        
			KE.show(
				{
					id : 'fund_donatorIntro',
					resizeMode : 1,
					afterCreate : function(id) {
						KE.event.ctrl(document, 13, function() {
							KE.util.setData(id);
							document.forms['main_form'].submit();
						});
						KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
							KE.util.setData(id);
							document.forms['main_form'].submit();
						});
					},
					items : [
						'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'link']
					}
			);        
			KE.show(
					{
						id : 'fund_organization',
						resizeMode : 1,
						afterCreate : function(id) {
							KE.event.ctrl(document, 13, function() {
								KE.util.setData(id);
								document.forms['main_form'].submit();
							});
							KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
								KE.util.setData(id);
								document.forms['main_form'].submit();
							});
						},
						items : [
							'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
							'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
							'insertunorderedlist', '|', 'emoticons', 'link']
						}
				);        
			KE.show(
					{
						id : 'fund_usageProcedures',
						resizeMode : 1,
						afterCreate : function(id) {
							KE.event.ctrl(document, 13, function() {
								KE.util.setData(id);
								document.forms['main_form'].submit();
							});
							KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
								KE.util.setData(id);
								document.forms['main_form'].submit();
							});
						},
						items : [
							'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
							'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
							'insertunorderedlist', '|', 'emoticons', 'link']
						}
				);        
				KE.show(
						{
							id : 'fund_usage',
							resizeMode : 1,
							afterCreate : function(id) {
								KE.event.ctrl(document, 13, function() {
									KE.util.setData(id);
									document.forms['main_form'].submit();
								});
								KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
									KE.util.setData(id);
									document.forms['main_form'].submit();
								});
							},
							items : [
								'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
								'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
								'insertunorderedlist', '|', 'emoticons', 'link']
							}
					);
		</script>
	</head>
	<body>
		<div class="div_title">添加专项基金</div>
		
		<s:form action="manage/addFund.action" method="POST" theme="simple" enctype="multipart/form-data">
			<table>
				<tbody>
					<tr>
						<td class="td_key">
							基金名称：
						</td>
						<td>
							<s:textfield name="fund.name" cssClass="input_long"></s:textfield>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							投资方：
						</td>
						<td>
							<s:textfield name="fund.donatorName" cssClass="input_long"></s:textfield>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							捐赠额度：
						</td>
						<td>
							<s:textfield name="fund.donationNum" cssClass="input_long"></s:textfield>
						</td>
					</tr>
					<!---->  
					<tr>
						<td class="td_key">
							设立时间：
						</td>
						<td>
							<input class="easyui-datebox"  style="width:150px" name="fund.foundDate" value=${fund.foundDate}></input>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							管理机构：
						</td>
						<td>
							<s:textarea name="fund.organization" id="fund_organization" cols="70" rows="5"></s:textarea>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							使用办法：
						</td>
						<td>
							<s:textarea name="fund.usageProcedures" id="fund_usageProcedures" cols="70" rows="15"></s:textarea>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							投资方简介：
						</td>
						<td>
							<s:textarea name="fund.donatorIntro" id="fund_donatorIntro" cols="70" rows="5"></s:textarea>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							基金使用情况：
						</td>
						<td>
							<s:textarea name="fund.fundUsage" id="fund_usage" cols="70" rows="5"></s:textarea>
						</td>
					</tr>
					<tr>
						<td class="td_key">
							附件：
						</td>
						<td>
							<s:file name="donationNumFile" cssClass="input_long"></s:file>
						</td>
					</tr>
					<tr>
						<td>
							
						</td>
						<td>
							<s:submit value="提交"></s:submit>
						</td>
					</tr>
				</tbody>
			</table>
		</s:form>
	</body>
</html>